package fxbattle.client.model;

import java.awt.Color;
import java.util.HashMap;
import java.util.Map;

public class BoundaryHex extends BattleHex {
	
	private static final Map<Location, BoundaryHex> boundaries = new HashMap<Location, BoundaryHex>();
	
	public static BoundaryHex getBoundary(Location iLoc){
		if(boundaries.get(iLoc) == null){
			boundaries.put(iLoc, new BoundaryHex(iLoc));
		}
		return boundaries.get(iLoc);
	}
	
    private BoundaryHex(Location iLoc){
    	super(iLoc);
    }
	
	@Override
	public boolean canActivateFlow(Direction arg0) {
		return false;
	}

	@Override
	public Army getControllingArmy() {
		return Army.no_army;
	}

	@Override
	public Color getColor() {
		return Color.BLACK;
	}

	@Override
	public String toString() {
		return "boundary " + getLocation() ;
	}
}
